package com.buer.storage.otherService.impl;

import com.buer.storage.otherDao.FormsonDao;
import com.buer.storage.otherEntity.FormsonDO;
import com.buer.storage.otherService.FormsonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Map;



@Service
public class FormsonServiceImpl implements FormsonService {
	@Autowired
	private FormsonDao formsonDao;
	
	@Override
	public FormsonDO get(Long ID){
		return formsonDao.get(ID);
	}

	
	@Override
	public int save(FormsonDO formson){
		return formsonDao.save(formson);
	}
	
	@Override
	public int update(FormsonDO formson){
		return formsonDao.update(formson);
	}
	
	@Override
	public int remove(Long ID){
		return formsonDao.remove(ID);
	}

	@Override
	public int removeAllByFormmainId(Long formmainId) {
		return formsonDao.removeAllByFormmainId(formmainId);
	}


	@Override
    public FormsonDO getOne(Map<String, Object> map){
        return formsonDao.getOne(map);
    }
	
}
